package com.wutuo.aggragation.rollcall.enums;

public enum SignActionType {

    SIGN("signed"), SELF_LEAVE("self_leave");

    private String type;

    /**
     * 私有构造函数
     * 
     * @param type
     */
    SignActionType(String type) {
        this.type = type;
    }

    /**
     * 返回枚举值的字符串值
     * 
     * @return
     */
    public String getValue() {
        return type;
    }

    public static SignActionType get(String type) {
        SignActionType[] values = SignActionType.values();
        for (SignActionType item : values) {
            if (item.getValue().equals(type)) {
                return item;
            }
        }
        return null;
    }
}
